package cn.yang.controller;

import cn.yang.service.UserScoresService;
import cn.yang.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/userScore")
public class UsersScoreController {
    @Autowired
    UserScoresService service;
    @GetMapping("/score")
    public Result score(){
        return Result.success(service.getScore());
    }
}
